// 项目相关接口
import request from '@/lib/request';

export const list = (params) => request({
  url: '/api/project/', method: 'get', params
})

export const get = (params, id) => request({
  url: `/api/project/${id}`, method: 'get', params
})

export const create = (data) => request({
  url: '/api/project/', method: 'post', data
})

export const update = (data, id) => request({
  url: `/api/project/${id}/`, method: 'put', data
})

export const rm = (params, id) => request({
  url: `/api/project/${id}`, method: 'delete', params
})